package main

import (
	"ginstart/appconfig"
	"ginstart/models/mysql"
	"ginstart/models/redis"
	"ginstart/routes"
	"github.com/gin-gonic/gin"
)

func main() {
	ginServe := gin.Default()

	appconfig.Init()
	mysql.MySQLInit()
	redis.RedisInit()

	routes.SetUserRoutes(ginServe)
	routes.SetVideoRoutes(ginServe)

	ginServe.Run(":" + appconfig.AppConfig.GinConfig.Run)
}
